The answer is given below.
The "print a row" piece fits nice in the place for the body of the the "do something five times" loop.
' Do the loop body five times FOR LINE = 1 TO 5 ' Print NUM stars in a row LET NUM = 10 PRINT FOR STARS = 1 TO NUM PRINT "*"; NEXT STARS NEXT LINE ' END
The "print a row" section of code is nested inside the "do something five times" loop. Since these pieces are both loops, this situation is called nested loops.
Nested loops are very common. They are like the "wheels within wheels" of modern machinery (or of modern life, for that matter).
Here are two possible outputs of the program. Which one is correct?
Choice A: Choice B: ********** ***** ********** ***** ********** ***** ********** ***** ********** ***** ***** ***** ***** ***** *****